package SparseArray;

public class Main {
    public static void main(String[] args) {

        ChessBoard chessBoard = new ChessBoard(8, 8);

        System.out.println("初始化后的棋盘原始数组数据格式");
        chessBoard.print();
        System.out.println("初始化后的棋盘稀疏数组数据格式");
        chessBoard.printSparseArray();
        System.out.println("============================");
        System.out.println("============================");
        //下棋
        chessBoard.addBlack(4, 4);
        chessBoard.addWhite(4, 5);
        chessBoard.addBlack(5, 5);
        chessBoard.addWhite(3, 3);
        System.out.println("下棋中途的棋盘原始数组数据格式");
        chessBoard.print();
        System.out.println("下棋中途的棋盘稀疏数组数据格式");
        chessBoard.printSparseArray();
    }
}
